import axios from "@/axios";

//获取分类分页数据
export function getCategoryPageList(data) {
    console.log("分类分页请求数据体：" + data)

    return axios.post("/admin/category/list", data)
}

//添加分类标签
export function addCategory(data) {
    console.log("add category")
    return axios.post("/admin/category/add", data)
}

//通过分类标签id删除标签
export function deleteCategory(data) {
    console.log("delete category")
    return axios.post("/admin/category/delete", data)
}

// 获取分类
export function getCategoryList() {
    console.log('获取所有分类')
    return axios.get("/admin/category/select/list")
}